package com.hspedu.exception_;

/**
 * @author yulian174
 * @version 1.0
 */
public class NullPointerException_ {
    public static void main(String[] args) {
        try {
            String name = null;
            System.out.println(name.length());
        } catch (Exception e) {
            System.out.println("空指针异常");
        }
    }
}
